package org.example.cart.vo;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.example.core.valid.annontation.BoolValue;

/**
 * @author 小杰_cc
 * @version 1.0
 */
@Data
public class CartRestVo {
    @NotNull(message = "商品id不能为空")
    private Long skuId;
    @Min(value = 1)
    @NotNull(message = "商品数量不能为空")
    private Integer count;
    @BoolValue(value = {true, false})
    @NotNull(message = "选择状态不能为空")
    private Boolean selected;
}
